<?php

function connectdatabase() {
    $link = mysql_connect("localhost", "sharingfiles", "adedaadeda");
    //$link = mysql_connect("localhost", "cassio", "adedaadeda");
    if (!$link) {
        die('Could not connect: ' . mysql_error());
    }
    $db_selected = mysql_select_db('sharingfiles', $link);
    //$db_selected = mysql_select_db('cassio', $link);
    if (!$db_selected) {
        die('Can\'t use sharingfiles : ' . mysql_error());
    }
    return $link;
}

function passwordmd5($password) {
    return md5("adeda" . $password);
}
?>